package representation;
import java.awt.Graphics;
import java.util.*;


public class RepresentationManager {
	
	private List<EntityRepresentation> representations;
	
	public RepresentationManager() {
		this.representations = new ArrayList<EntityRepresentation>();
	}
	
	public void addEntity(EntityRepresentation representation) {
		this.representations.add(representation);
	}
	
	public void removeEntity(EntityRepresentation representation) {
		this.representations.remove(representation);
	}
	
	public void draw(Graphics g) {
		for (EntityRepresentation representation : representations) {
			representation.draw(g);
		}
	}
	
}
